package com.yoso.springcloud.domain;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @Description:
 * @Date: 2021/10/12 17:01
 */
@Data
@Entity
@AllArgsConstructor
@NoArgsConstructor
@Component
@Table(name = "t_payment")
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler" })
public class Payment implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE)
    private Long id;
    private String serial;
}
